package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class xclog_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/css.jsp");
  }

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>\r\n");
      out.write("伊利优酸乳炫彩奖查询\r\n");
      out.write("</title>\r\n");
      out.write("\n");
      out.write("<!-- ¶¨Òå¹«¹²µÄ HTTP META ÐÅÏ¢, °üÀ¨ charset, cache policy µÈ  -->\n");
      out.write("   <META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;CHARSET=GBK\">\n");
      out.write("   <meta http-equiv=\"Expires\" content=\"Tue, 20 Jul 1971 00:00:00 GMT\">\n");
      out.write("\n");
      out.write("<!-- ¶¨Òå¹«¹²µÄ Cascade-Style-Sheet -->\n");
      out.write("   <STYLE TYPE=\"text/css\">\n");
      out.write("\n");
      out.write("   a:link    { color: #3333ff; text-decoration: none}\n");
      out.write("   a:active  { color: #d34364; text-decoration: underline}\n");
      out.write("   a:visited { color: #3333ff; text-decoration: none}\n");
      out.write("   a:hover   { font-weight: normal}\n");
      out.write("\n");
      out.write("   <!-- ¶¨Òå Form Item µÄCSS -->\n");
      out.write("\n");
      out.write("   .formbutton    {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formtext1  \t  {background-color:white;height=100;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formtext  \t  {background-color:white;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formpassword  {background-color:white;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formtextarea  {background-color:white;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formselect    {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formmultiselect    {background-color:#edefe0;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formradiobox  {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formcheckbox  {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid; }\n");
      out.write("   .formfile      {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("\n");
      out.write("   .servicename   {font-family: Arial; font-weight: normal; font-size: 10pt;}\n");
      out.write("   .bodynormal    {background-color: #FFFFFF;}   <!-- Õý³£ÇøÓòµÄ body CSS -->\n");
      out.write("   .bodymenu\t  {background-color: #2B63F5;}   <!-- Menu ÇøÓòµÄ Body CSS -->\n");
      out.write("   .title     \t  {font-family: Arial; font-weight: bold;   font-size: 15px; color: black;}\n");
      out.write("   .listhead      {font-family: Arial; font-weight: bold;   font-size: 10pt; color: #212116}\n");
      out.write("   .bigtext          {font-family: Arial; font-weight: bold; font-size: 10pt; color: #212116}\n");
      out.write("   .bluetext          {left:5; font-family: Arial; font-weight: normal; font-size: 11pt; color: #blue}\n");
      out.write("   .text          {font-family: Verdana, Arial, Helvetica, MingLiu, 'ËÎÌå', sans-serif;font-size: 11px;color: #333;}\n");
      out.write("   .smalltext     {font-family: Arial; font-weight: normal; font-size: 9pt; color: #212116}\n");
      out.write("   .copyrighttext      {font-family: Arial; font-weight: normal; font-size: 10pt; color: #212116}\n");
      out.write("   .mailtext      {left:5; font-family: Arial; font-weight: normal; font-size: 10pt; color: #212116}      <!--¿ØÖÆÎÄ±¾ÓÊ¼þµÄÏÔÊ¾¸ñÊ½-->\n");
      out.write("   .maildiv       {position:relative; top: 10; left:5; width:90%; font-family: Helvetica, Arial; font-size: 8pt;}   <!-- ¿ØÖÆ HTML ÓÊ¼þµÄ¿ò¼Ü-->\n");
      out.write("\n");
      out.write("   <!-- ¶¨Òå²Ëµ¥ÇøµÄ CSS -->\n");
      out.write("   .fldrsign {font-family: Arial; font-weight: normal; font-size  : 10pt; color:white}\n");
      out.write("   .fldrroot {font-family: Arial; font-weight: normal; font-size  : 10pt; color:white}\n");
      out.write("   .fldritem {\n");
      out.write("   font-family: Arial;\n");
      out.write("   font-size  : 10pt; font-size:12px;\n");
      out.write("   color:#000000;\n");
      out.write("   font-weight:bold;\n");
      out.write("   height:25px;\n");
      out.write("   }\n");
      out.write("\n");
      out.write("   .email {font-family: Arial; font-weight: normal; font-size  : 9pt; color:white}\n");
      out.write("\n");
      out.write("   .tablehead\t       {background-color: #DCECFB;}\n");
      out.write("   .tablebanner        {background-image: url(/GMS/html/cn/images/bg-table-line.gif);}\n");
      out.write("   .tablemaillist      {background-color: silver; bordercolor: #ffffff }\n");
      out.write("   .tablemaillisthead  {background-color:#DCECFB;}\n");
      out.write("   .tablemaillistitem  {background-color: #fafafa;}\n");
      out.write("\n");
      out.write("   .gmstitle {font-family: Helvetica, Arial; font-size: 15pt; font-weight: bold}\n");
      out.write("\n");
      out.write(".db {border-collapse: collapse;background-color:#dcecfb; border-color: #cccccc;}\n");
      out.write(".db td {border-color: #333333; }\n");
      out.write("\n");
      out.write("   </STYLE>\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script language=\"JavaScript\" src=\"script/calendar.js\"></script>\r\n");
      com.asiainfo.ysrman.xc.XCLog queryBean = null;
      synchronized (request) {
        queryBean = (com.asiainfo.ysrman.xc.XCLog) _jspx_page_context.getAttribute("queryBean", PageContext.REQUEST_SCOPE);
        if (queryBean == null){
          queryBean = new com.asiainfo.ysrman.xc.XCLog();
          _jspx_page_context.setAttribute("queryBean", queryBean, PageContext.REQUEST_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
queryBean.progressRequest(request);
      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT LANGUAGE=\"JAVASCRIPT\" type=\"text/javascript\">\r\n");
      out.write("\r\n");
      out.write("   function updateService(){\r\n");
      out.write("     document.mainForm.page.value=1;\r\n");
      out.write("     document.mainForm.submit();\r\n");
      out.write("   }\r\n");
      out.write("   function goP(page){\r\n");
      out.write("   \t//alert(page);\r\n");
      out.write("      \tif(page==0||page==");
      out.print((queryBean.getTotPages()+1));
      out.write('|');
      out.write('|');
      out.print(((queryBean.getPage()==queryBean.getTotPages())&&(queryBean.getTotPages()==1)));
      out.write("){\r\n");
      out.write("        \talert(\"已经是第一页或最后一页了。\");\r\n");
      out.write("                return;\r\n");
      out.write("        }\r\n");
      out.write("        ");

        if(queryBean.getTotPages()==0){
        
      out.write("\r\n");
      out.write("        alert(\"没有任何数据.\");\r\n");
      out.write("        return;\r\n");
      out.write("        ");

        }
        
      out.write("\r\n");
      out.write("        document.mainForm.page.value=page;\r\n");
      out.write("        document.mainForm.submit();\r\n");
      out.write("      }\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");
      out.write("\r\n");
      out.write("<form method=\"post\" name=\"mainForm\" action=\"xclog.jsp\">\r\n");
      out.write("  <input type=\"hidden\" name=\"operation\" value=\"query\"/>\r\n");
      out.write("   <div align=\"center\" class='gmstitle'>炫彩铃赠送情况</div>\r\n");
      out.write("<hr/>\r\n");
      out.write("<table border=\"0\" class=\"db\">\r\n");
      out.write("<tr align=\"left\">\r\n");
      out.write("<td align=\"left\" width=\"20%\" class=\"text\">查询条件:</td>\r\n");
      out.write("\r\n");
      out.write("</tr>\r\n");
      out.write("\t<tr class=\"text\">\r\n");
      out.write("              <td align=\"left\" colspan=\"2\">时间：\r\n");
      out.write("                <input name=\"time\" type=\"text\" readonly  size=\"20\" value=\"");
      out.print(queryBean.getTime());
      out.write("\"  onfocus=\"if(CalendarWebControl.calendarPad.style.display!='none'){CalendarWebControl.calendarPad.style.display='none';return false;}CalendarWebControl.show(this,false,this.value);return false;\">\r\n");
      out.write("\r\n");
      out.write("              运营商：\r\n");
      out.write("               <select name=\"via\" >\r\n");
      out.write("        <option ");
      out.print(queryBean.getVia()==2?"selected":"");
      out.write(" value=\"2\">移动</option>\r\n");
      out.write("        <option ");
      out.print(queryBean.getVia()==0?"selected":"");
      out.write(" value=\"0\">联通</option>\r\n");
      out.write("        </select>\r\n");
      out.write("         状态：\r\n");
      out.write("               <select name=\"status\" >\r\n");
      out.write("        <option ");
      out.print(queryBean.getStatus()==9?"selected":"");
      out.write(" value=\"9\">接口不成功</option>\r\n");
      out.write("        <option ");
      out.print(queryBean.getStatus()==1?"selected":"");
      out.write(" value=\"1\">成功</option>\r\n");
      out.write("         <option ");
      out.print(queryBean.getStatus()==8?"selected":"");
      out.write(" value=\"8\">手工赠送成功</option>\r\n");
      out.write("        <option ");
      out.print(queryBean.getStatus()==7?"selected":"");
      out.write(" value=\"7\">手工赠送失败</option>\r\n");
      out.write("        </select>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("        </td>\r\n");
      out.write("        <tr class=\"text\">\r\n");
      out.write("              <td align=\"left\" colspan=\"2\">\r\n");
      out.write("              手机号码：<input type=\"text\"  name=\"mobile\" value=\"");
      out.print(queryBean.getMobile());
      out.write("\"/>\r\n");
      out.write("\r\n");
      out.write("              <input class=\"formbutton\" type=\"button\" name=\"update\" value=\" 查询... \" onClick=\"javascript:updateService();return false;\">\r\n");
      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("      ");

	if(queryBean.getOperation()!=null){
         
      out.write("\r\n");
      out.write("                     <div align=\"center\" class=\"gmstitle\">查询结果：</div>\r\n");
      out.write(" \t<table width=\"100%\"  border=\"1\" class=\"db\">\r\n");
      out.write("        <tr align=\"left\" class=\"tablemaillisthead\">\r\n");
      out.write("         <td align=\"center\" nowrap=\"nowrap\" width=\"35\">编号</td>\r\n");
      out.write("        <td align=\"center\" nowrap=\"nowrap\"  width=\"80\">手机号码</td>\r\n");
      out.write("\r\n");
      out.write("        <td align=\"center\" nowrap=\"nowrap\"  width=\"100\">所在地区</td>\r\n");
      out.write("         <td align=\"center\" nowrap=\"nowrap\"  >发送内容</td>\r\n");
      out.write("          <td align=\"center\" nowrap=\"nowrap\" width=\"135\">发送时间</td>\r\n");
      out.write(" <td align=\"center\" nowrap=\"nowrap\" >状态</td>\r\n");
      out.write(" ");

 if(queryBean.getStatus()==9){
 
      out.write("\r\n");
      out.write(" <td align=\"center\" nowrap=\"nowrap\" width=\"135\">进行人工赠送</td>\r\n");
      out.write(" ");
}
      out.write("\r\n");
      out.write("        </tr>\r\n");
      out.write("        ");


        	java.util.Vector lists = queryBean.getQueryLists();
                if(lists.size()!=0){

                  for(int i=0;i<lists.size();i++){
                   	String mt = (String)lists.get(i);
                        String[] mts = mt.split("@#");
        
      out.write("\r\n");
      out.write("\r\n");
      out.write("                        \t<tr style=\"background='");
      out.print(i%2==0?"#d0ecf0":"#dcecfb");
      out.write("'\" class=\"text\">\r\n");
      out.write("\r\n");
      out.write("                         <td align=\"center\">");
      out.print(i+1);
      out.write("</td>\r\n");
      out.write("        \t\t<td  align=\"center\" >");
      out.print(mts[0]);
      out.write("</td>\r\n");
      out.write("                        <td  align=\"center\" >");
      out.print(mts[1].equals("null")?"&nbsp;":mts[1]);
      out.write("</td>\r\n");
      out.write("                        ");

                        String content = "";
                        //爱不是对不起", "候鸟之城", "无法防御", "校园新主张
                        if(mts[2].equals("1")){
                          content = mts[2] + ":爱不是对不起";
                        }else  if(mts[2].equals("2")){
                          content = mts[2] + ":候鸟之城";
                        } if(mts[2].equals("3")){
                          content = mts[2] + ":无法防御";
                        } if(mts[2].equals("4")){
                          content = mts[2] + ":校园新主张";
                        }
                        
      out.write("\r\n");
      out.write("                        <td  align=\"center\" >");
      out.print(content);
      out.write("</td>\r\n");
      out.write("                        <td  align=\"center\" width=\"135\">");
      out.print(mts[3]);
      out.write("</td>\r\n");
      out.write("                        <td  align=\"center\" >");
      out.print(mts[4]);
      out.write("</td>\r\n");
      out.write("\r\n");
      out.write("                        ");

 if(queryBean.getStatus()==9){
 
      out.write("\r\n");
      out.write(" <td align=\"center\" nowrap=\"nowrap\" width=\"135\"><a onclick=\"window.open(this.href,this.target,'width=300,height=300'); return false;\" target=\"p\" href=\"xcupdate.jsp?mobile=");
      out.print(mts[0]);
      out.write("&content=");
      out.print(mts[2]);
      out.write("&time=");
      out.print(mts[3]);
      out.write("\"> 填写赠送结果</a></td>\r\n");
      out.write(" ");
}
      out.write("\r\n");
      out.write("                        </tr>\r\n");
      out.write("        ");

                  }

        
      out.write("\r\n");
      out.write("\r\n");
      out.write("        ");

                }else{
         
      out.write("\r\n");
      out.write("        <tr class=\"text\"><td bgcolor=\"#2B63F5\" colspan=\"");
      out.print(queryBean.getStatus()==9?"7":"6");
      out.write("\">没有该条件下的任何短信记录</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        ");

                }
        
      out.write("\r\n");
      out.write("        </table>\r\n");
      out.write("        ");


        }

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<input type=\"hidden\" name=\"page\" value=\"");
      out.print(queryBean.getPage());
      out.write("\"/>\r\n");

if(queryBean.getOperation()!=null){

      out.write("\r\n");
      out.write("<table width=\"100%\">\r\n");
      out.write("<tr class=\"text\">\r\n");
      out.write("   <TD align=\"left\" width=\"60%\">\r\n");
      out.write("  总用条数：");
      out.print(queryBean.getTot());
      out.write("\r\n");
      out.write("</TD>\r\n");
      out.write("  <TD align=\"right\" width=\"10%\" >\r\n");
      out.write("  ");
      out.print(queryBean.getPage());
      out.write("&nbsp;&frasl;&nbsp;");
      out.print(queryBean.getTotPages());
      out.write("\r\n");
      out.write("</TD>\r\n");
      out.write("<TD align=\"right\" width=\"30%\">\r\n");
      out.write(" <a href=\"#\" title=\"第一页\" onclick=\"javascript:goP('1');\">\r\n");
      out.write("  |&lt;&lt;</a> &nbsp;&nbsp;\r\n");
      out.write("  <a href=\"#\" title=\"上一页\" onclick=\"javascript:goP('");
      out.print(queryBean.getPage()-1);
      out.write("');\">&lt;&lt;</a> &nbsp;&nbsp;\r\n");
      out.write("    <a href=\"#\" title=\"后一页\" onclick=\"javascript:goP('");
      out.print(queryBean.getPage()+1);
      out.write("');\">&gt;&gt;</a> &nbsp;&nbsp;\r\n");
      out.write("     <a href=\"#\" title=\"最后一页\" onclick=\"javascript:goP('");
      out.print(queryBean.getTotPages());
      out.write("');\"> &gt;&gt;|</a>\r\n");
      out.write("</TD>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write("</form>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
